package com.edu.study.base.wordBook.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 词书管理对象 edu_word_book
 * 
 * @author zw
 * @date 2022-04-11
 */
public class WordBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 词书名称 */
    @Excel(name = "词书名称")
    private String bookName;
    /** 词书封面 */
    @Excel(name = "词书封面")
    private String bookImg;

    /** 词书类别 */
    @Excel(name = "词书类别")
    private String bookCategory;
    /** 单词类别 */
    @Excel(name = "单词类别")
    private String wordCategory;
    private String wordCategoryName;
    /** 单词数量 */
    private Long wordNumber;
    /** 视频url */
    private String videoUrl;

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    private List<WordBook> children;

    public List<WordBook> getChildren() {
        return children;
    }

    public void setChildren(List<WordBook> children) {
        this.children = children;
    }

    public Long getWordNumber() {
        return wordNumber;
    }

    public void setWordNumber(Long wordNumber) {
        this.wordNumber = wordNumber;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setBookCategory(String bookCategory) 
    {
        this.bookCategory = bookCategory;
    }

    public String getBookCategory() 
    {
        return bookCategory;
    }

    public String getWordCategory() {
        return wordCategory;
    }

    public void setWordCategory(String wordCategory) {
        this.wordCategory = wordCategory;
    }

    public String getWordCategoryName() {
        return wordCategoryName;
    }

    public void setWordCategoryName(String wordCategoryName) {
        this.wordCategoryName = wordCategoryName;
    }

    public String getBookImg() {
        return bookImg;
    }

    public void setBookImg(String bookImg) {
        this.bookImg = bookImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("bookName", getBookName())
            .append("bookCategory", getBookCategory())
            .toString();
    }
}
